#include "../Base.h"

VOID
DefaultWorkItemFunc(
	_In_ PVOID Parameter
){
	PWORKITEMINFPARAM workParam= (PWORKITEMINFPARAM)Parameter;
	LOG("DefaultWorkItem");
	ExFreePoolWithTag(workParam, 'yang');
}
VOID SetWorkItem(WORKER_THREAD_ROUTINE notify,PWORKITEMINFPARAM workItemContext) {

	if (!notify) {
		ExInitializeWorkItem(&workItemContext->workItem, DefaultWorkItemFunc, workItemContext);

	}
	else {
		ExInitializeWorkItem(&workItemContext->workItem, notify, workItemContext);
	}
	ExQueueWorkItem(&workItemContext->workItem, DelayedWorkQueue);
}